package Excuse;

import java.util.Scanner;

public class SJX {
    public static void main(String[] args) {
        int x, y, z;
        Scanner scanner = new Scanner(System.in);


        System.out.print("请输入一个数");
        x = scanner.nextInt();
        System.out.print("请输入一个数");
        y = scanner.nextInt();
        System.out.print("请输入一个数");
        z = scanner.nextInt();

        if ((x + y > z) && (x + z > y) && (y + z > x)) {
            if (x == y && y == z && x == z) {
                System.out.println("等边三角形");
            } else if ((x == y) || (y == z) || (x == z)) {
                System.out.println("等腰三角形");
            } else if ((x * x + y * y == z * z) || (y * y + z * z == x * x) || (x * x + z * z == y * y)) {
                System.out.println("直角三角形");
            } else {
                System.out.println("不规则三角形");
            }

        } else {
            System.out.println("不能构成三角形");
        }
    }
}
